<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');
		echo $this->Html->css('reset');
		echo $this->Html->css('common');
		echo $this->Html->css('ie');
		echo $this->Html->script('jquery');
		echo $this->Html->script('header');
		echo $scripts_for_layout;
	?>
</head>
<body>
	<div id="container">
		<div id="header">
			<div class="wrap">
				<h1><a id="logo" href="/dorimeme/dashboard">Dorime.me</a></h1>
				<?php echo $form->create('Posts',array('action'=>'search')); ?>
				<fieldset>
					<legend>Search</legend>
				<?php echo $form->input('keyword',array('value'=>'Search')); ?>				
					<div class="submit">
						<input id="searchBut" type="submit" value="Search" />
					</div>				
				<?php echo $form->End(); ?>
				</fieldset>
			<ul id="nav">
				<li><a href="/dorimeme/dashboard">Dashboard</a></li>
				<li><a href="/dorimeme/dorimeblog">Blog</a></li>
				<li><a href="/dorimeme/users/Settings">Settings</a></li>
				<li><a href="/dorimeme/Explore">Explore</a></li>
				<li><a href="/dorimeme/help">Help</a></li>
				<li><a href="/dorimeme/users/logout">Logout</a></li>
			</ul><!--End nav-->
			<ul class="submenu">
				<?php
					foreach($dorimeBlogs as $dorimeBlog){
						echo '<li><a href="/dorimeme/dorimeblog/index/'.$dorimeBlog['Blog']['id'].'">'.$dorimeBlog['Blog']['title'].'</a></li>';
					}
				?>
				<li><a href="/dorimeme/blogs/add">Add New Blog</a></li>
			</ul>
			</div><!--End wrap-->
		</div><!--End Header-->
		<div id="content">
			<?php echo $this->Session->flash(); ?>
			<?php echo $content_for_layout; ?>
			<div class="clear"></div>
		</div>
		<div id="footer">
		</div>
	</div>
</body>
</html>